package com.test.user;

import com.google.gson.Gson;

public class DBAPI {
	// 先从服务端获取json，然后解析数据
	static int getUserCount(String id){
		String json = WebDataCatcher.getData("http://localhost:8080/TestWeb/UserLogin?fun=GetUserCount");
		Gson gson = new Gson();
		return gson.fromJson(json, int.class);
	}
}
